<template>
  <div>
    <Header></Header>
    <router-view></router-view>
    <!-- <Footer v-if="isFooterShow"></Footer> -->
    <Footer v-if="!this.$route.meta.isHidden"></Footer>
  </div>
</template>

<script>
  import { mapActions } from "vuex";
  import Header from "@comp/Header";
  import Footer from "@comp/Footer";

  export default {
    name: "App",
    components: {
      Header,
      Footer,
    },
    computed: {
      // isFooterShow() {
      //   return this.$route.name !== "Login" && this.$route.name !== "Register";
      // },
    },
    mounted() {
      // console.log(this);
      //初始化发送三级列表请求
      this.getCategoryList();
    },
    methods: {
      ...mapActions("category", ["getCategoryList"]),
    },
  };
</script>

<style scoped lang="less"></style>
